using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using DailyReport.Core.Bussines;
using DailyReport.Core.Bussines.IManagers;
using DailyReport.Core.Data.Dao;
using DailyReport.Core.Data.Dao.DaoFactory;
using DailyReport.Core.Data.Model;
using DailyReport.Core.Util;
using DailyReport.NHibernateDao.Data.Dao;
using log4net;

public partial class Pages_UpDateUser : System.Web.UI.Page
{
    private UserManager um = new UserManager();

    protected void Page_Load(object sender, EventArgs e)
    {
        User user=um.loadUser(0);
        txtFirtName.Text = user.FirstName;
        txtLastName.Text = user.LastName;
        txtEmail.Text = user.Email;
        ddlTeams.SelectedValue = user.Team.Name;      

    }
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        um.updateUser(0, 0, txtFirtName.Text, txtLastName.Text);
    }
}
